const TOKEN_NAME = 'hkzf_tokne';

//设置token

const setToken = (value) => {
    localStorage.setItem(TOKEN_NAME, value)
};

//获取token

const getToken = () => {
    const token = localStorage.getItem(TOKEN_NAME);
    return token
};

//移除token

const removeToken = () => {
    localStorage.removeItem(TOKEN_NAME)
};

//是否登录

const isLogin = () => !!getToken()

export {setToken, getToken, removeToken, isLogin}
